package com.itxx.homeWork.test2;

public class Test {
    public static void main(String[] args) {
        Cars cars1 = new Cars("奔驰汽车","3600000");
        Cars cars2 = new Cars("宝马汽车","4000000");
        cars1.run();
        cars2.run();
        cars2.gps();

        Motocycle motocycle1 = new Motocycle("雅马哈摩托","70000");
        Motocycle motocycle2 = new Motocycle("宝马摩托","170000");
        motocycle1.run();
        motocycle2.run();
    }
}
